home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 February / Macworld (1999-02).dmg / Games World / SharewareGames / Xconq 7.2.2 / lib / fred.g < prev    next >
Text File  |  1998-05-22  |  5KB  |  248 lines

  1. (game-module "fred"
  2.   ;; This is not a standalone game, has only a test setup defined.
  3.   (title "Frederick")
  4.   (blurb "base module for the Seven Years War")
  5.   (variants (world-size (45 30 1000)))
  6. )
  7.  
  8. (set see-all true) ; for debugging
  9.  
  10. (unit-type army (image-name "soldiers"))
  11. (unit-type general (image-name "flag"))
  12. (unit-type marshal (image-name "flag"))
  13. (unit-type prince (image-name "flag"))
  14. (unit-type king (image-name "crown"))
  15. (unit-type depot (image-name "walltown"))
  16. (unit-type town (image-name "town20"))
  17. (unit-type fortress (image-name "fortress"))
  18.  
  19. (material-type supplies
  20.   (help "generic supplies"))
  21.  
  22. (terrain-type sea (char "."))
  23. (terrain-type countryside (char "+"))
  24. (terrain-type swamp (char "="))
  25. (terrain-type forest (char "%"))
  26. (terrain-type mountains (char "^"))
  27. (terrain-type river
  28.   (subtype border))
  29. (terrain-type barrier (image-name "mountains")
  30.   (subtype border))
  31. (terrain-type pass (image-name "road")
  32.   (subtype connection))
  33.  
  34. (define cell-t* (sea countryside swamp forest mountains))
  35. (define leader (general marshal prince king))
  36. (define bases (depot town fortress))
  37.  
  38. (add sea liquid true)
  39.  
  40. ;;; Static relationships.
  41.  
  42. (table vanishes-on
  43.   ;; No navy in this game.
  44.   (u* sea true)
  45.   )
  46.  
  47. ;;; Armies carry leaders around and are propelled by them.
  48.  
  49. (add army capacity 1)
  50. (add bases capacity 10)
  51.  
  52. (table unit-size-as-occupant
  53.   ;; Disable occupying by default.
  54.   (u* u* 100)
  55.   (army bases 1)
  56.   ;; Army can only have one commander.
  57.   (leader army 1)
  58.   (leader bases 0)
  59.   )
  60.  
  61. (table unit-capacity-x
  62.   ;; Leaders can carry each other around, higher ranks "carrying" lower.
  63.   (king (general marshal prince) 4)
  64.   (prince (general marshal) 3)
  65.   (marshal (general) 2)
  66.   )
  67.  
  68. (table unit-size-in-terrain
  69.   (u* t* 0)
  70.   ;; (need to limit armies?)
  71.   )
  72.  
  73. (table unit-storage-x
  74.   (army supplies 60)
  75.   (bases supplies 600)
  76.   )
  77.  
  78. ;;; Actions.
  79.  
  80. (add army acp-per-turn 1)
  81. (add leader acp-per-turn 6)
  82. (add bases acp-per-turn 0)
  83.  
  84. (table acp-occupant-effect
  85.   ;; Leaders "get the lead out", accelerate the army.
  86.   (leader army 600)
  87.   )
  88.  
  89. ;;; Movement.
  90.  
  91. (table mp-to-enter-terrain
  92.   (u* sea 99)
  93.   ;; Crossing rivers is hard for armies.
  94.   (army river 1)
  95.   ;; Mountain barriers are impassable.
  96.   (army barrier 99)
  97.   (leader barrier 99)
  98. )
  99.  
  100. (table mp-to-traverse
  101.   (army pass 1)
  102.   )
  103.  
  104. (add army free-mp 1)
  105.  
  106. ;;; Construction.
  107.  
  108. (add depot cp 6)
  109.  
  110. (table acp-to-create (army depot 1))
  111.  
  112. (table acp-to-build (army depot 1))
  113.  
  114. ;;; Combat.
  115.  
  116. (add army hp-max 80)
  117.  
  118. (table acp-to-attack
  119.   (army u* 3)
  120.   )
  121.  
  122. (table acp-to-defend
  123.   (army army 3)
  124.   )
  125.  
  126. (table hit-chance
  127.   (army army 50)
  128.   (army leader 50)
  129.   )
  130.  
  131. (table damage
  132.   (army army 1d4)
  133.   (army leader 1)
  134.   )
  135.  
  136. (table withdraw-chance-per-attack
  137.   (army army 25)
  138.   ;; Leaders can usually escape from hits.
  139.   (army leader 90)
  140.   )
  141.  
  142. (table acp-to-capture
  143.   (army army 1)
  144.   (army leader 1)
  145.   (army bases 1)
  146.   )
  147.  
  148. (table capture-chance
  149.   ;; implausible for small units capturing large
  150.   (army army 25)
  151.   (army leader 100)
  152.   (army bases 100)
  153.   )
  154.  
  155. ;;; Garrisons prevent immediate capture.
  156.  
  157. (table protection
  158.   (army fortress 10)
  159.   )
  160.  
  161. ;;; Need a surrender chance for depots vs fortresses.
  162.  
  163. ;;; Backdrop.
  164.  
  165. (table base-production
  166.   ;; Armies can supply part of needs by foraging.
  167.   (army supplies 15)
  168.   )
  169.  
  170. (table productivity
  171.   ;; Foraging in the mountains is ineffective.
  172.   (army mountains 20)
  173.   )
  174.  
  175. (table base-consumption
  176.   (army supplies 60)
  177.   )
  178.  
  179. (table hp-per-starve
  180.   (army supplies 20.00)
  181.   )
  182.  
  183. (table out-length
  184.   (bases supplies 5)
  185.   )
  186.  
  187. (table in-length
  188.   (army supplies 5)
  189.   (bases supplies 5)
  190.   )
  191.  
  192. ;;; Scoring.
  193.  
  194. (add u* point-value 0)
  195. (add fortress point-value 1)
  196.  
  197. ;;; Seasons.
  198.  
  199. (world (year-length 26))
  200.  
  201. (set calendar '(usual week 2))
  202.  
  203. (set season-names
  204.   ((0 6 "winter") (7 12 "spring") (13 19 "summer") (20 25 "autumn")))
  205.  
  206. ;;; Random generation; should be for testing only.
  207.  
  208. (add cell-t* alt-percentile-min (  0  70  30  20  90))
  209. (add cell-t* alt-percentile-max ( 20  90  31  90 100))
  210. (add cell-t* wet-percentile-min (  0  50  50   0   0))
  211. (add cell-t* wet-percentile-max (100 100 100 100 100))
  212.  
  213. (set edge-terrain mountains)
  214.  
  215. (add u* start-with 1)  ; one of everything
  216.  
  217. (table favored-terrain
  218.   (u* t* 0)
  219.   (u* countryside 100)
  220.   )
  221.  
  222. (table unit-initial-supply (u* m* 9999))
  223.  
  224. ;;; Always max out at a 9-month campaign season.
  225.  
  226. (set last-turn 18)
  227.  
  228. (game-module (notes (
  229.   "This is a game about the Seven Years War in central Europe.  The number of unit types"
  230.   "is small, and there are only a few special characteristics.  The game"
  231.   "is basically one of maneuvering for position, since combat was mostly"
  232.   "ineffective."
  233.   ""
  234.   "Map scale is 15 miles/cell, time is 2 weeks/turn."
  235.   ""
  236.   )))
  237.  
  238. (game-module (design-notes (
  239.   "A number of items remain to be developed:"
  240.   ""
  241.   "Disable free moves and make combat cost high, to simulate the mutual"
  242.   "consent to combat."
  243.   ""
  244.   "Supply paths (about 4-5 cells)."
  245.   ""
  246.   "River effect on combat."
  247.   )))
  248.